<?php echo $this->fetch('header.html'); ?>
<div id="rightTop">
    <p>自由搭配</p>
</div>

<div class="mrightTop">
    <div class="fontl">
        <form method="get" style="float:left;" name="search_form">
            <div style="float:left;">
                <input type="hidden" name="app" value="mix" />
                自由搭配名称:
                <input class="queryInput" type="text" name="mix_name" value="<?php echo htmlspecialchars($_GET['mix_name']); ?>" />
                店铺名称:
                <input class="queryInput" type="text" name="store_name" value="<?php echo htmlspecialchars($_GET['store_name']); ?>" />
            </div>
            <div style="float:left;">

                <input type="submit" class="formbtn" value="查询" />
                <?php if ($this->_var['query']['mix_name'] || $this->_var['query']['store_name']): ?>
                <a class="formbtn1" href="index.php?app=mix">撤销检索</a>
                <?php endif; ?>
            </div>
        </form>
    </div>
    <div class="fontr"><?php echo $this->fetch('page.top.html'); ?></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <?php if ($this->_var['mix_list']): ?>
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td width="15%">自由搭配名称</td>
            <td width="20%">店铺名称</td>
            <td width="30%">自由搭配描述</td>
            <td width="10%" class="table-center">商品数</td>
            <td class="table-center">操作</td>
        </tr>
        <?php endif; ?>
        <?php $_from = $this->_var['mix_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'mix');if (count($_from)):
    foreach ($_from AS $this->_var['mix']):
?>
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="<?php echo $this->_var['mix']['mix_id']; ?>"/></td>
            <td><?php echo htmlspecialchars($this->_var['mix']['mix_name']); ?></td>
            <td><?php echo htmlspecialchars($this->_var['mix']['store_name']); ?></td>
            <td><?php echo nl2br($this->_var['mix']['mix_desc']); ?></td>
            <td class="table-center"><?php echo ($this->_var['mix']['goods_count'] == '') ? '0' : $this->_var['mix']['goods_count']; ?></td>
            <td class="table-center">
                <a href="<?php echo url('app=mix&act=drop&id=' . $this->_var['mix']['mix_id']. ''); ?>" >删除</a> |
                <a href="<?php echo url('app=mix&act=view_goods&id=' . $this->_var['mix']['mix_id']. ''); ?>">查看自由搭配商品</a>
            </td>
        </tr>
        <?php endforeach; else: ?>
        <tr class="no_data info">
            <td colspan="8">没有符合条件的记录</td>
        </tr>
        <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>
    <?php if ($this->_var['mix_list']): ?>
    <div id="dataFuncs">
        <div id="batchAction" class="left paddingT15">
            <input class="formbtn batchButton" type="button" value="删除" name="id" uri="index.php?app=mix&act=drop&ret_page=<?php echo $this->_var['page_info']['curr_page']; ?>" presubmit="confirm('您确定要删除该自由搭配吗？')" />
        </div>
        <div class="pageLinks"><?php echo $this->fetch('page.bottom.html'); ?></div>
    </div>
    <?php endif; ?>
    <div class="clear"></div>
</div>
<?php echo $this->fetch('footer.html'); ?>

